﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExtFileUpload.aspx.cs" Inherits="Office_ExtFileUpload" %>

<%@ Register Src="../UserControls/FileUpdate.ascx" TagName="FileUpdate" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/GeneralSelect.ascx" TagName="GeneralSelect" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>通用的文件上传和预览</title>
</head>
<body>
    <form id="form1" runat="server">
    <br />
    <div style="text-align: center;">
        <table style="text-align: left;" class="inputtable">
            <tr>
                <td>
                    附件上传：
                </td>
                <td style="text-align: left;">
                    <uc1:FileUpdate ID="FileUpdate1" OnAfterUploadedEvent="FileUpdate1_AfterUploadedEvent"
                        runat="server" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="CustomGridView1" runat="server" AllowPaging="True"
            SkinID="NewGrid" AutoGenerateColumns="false" ShowCmpAndCancel="False" ShowHideColModel="None" ShowItemNumber="true" 
            OnOnLoadData="CustomGridView1_OnLoadData" Width="100%" AllowOnMouseOverEvent="True"
            AutoGenerateDeleteConfirm="True" OnRowCreated="CustomGridView1_RowCreated">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="id" HeaderText="样图批注文件" DataNavigateUrlFormatString="../WebPubManager/AppearOtherResouce.aspx?type=AttAchment&id={0}"
                    Target="_blank" DataTextField="filename" />
                <asp:BoundField DataField="fileTYPE" HeaderText="资源类型"></asp:BoundField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlDelete" runat="server">删除</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    </form>
</body>
</html>
